//
//  BaseModel.m
//  TBRentClient
//
//  Created by tonbright on 2018/4/17.
//  Copyright © 2018年 tonbright. All rights reserved.
//

#import "BaseModel.h"
@implementation BaseModel

//继承后都可以直接打印模型数据详细信息-----------
- (NSString *)description
{
    return [self yy_modelDescription];
}

//重写以下几个方法----实现归档接档方法----------继承此类的都可以直接归档解档存储数据--
- (void)encodeWithCoder:(NSCoder*)aCoder {
    [self yy_modelEncodeWithCoder:aCoder];
}
- (id)initWithCoder:(NSCoder*)aDecoder
{
    self = [super init];
    return [self yy_modelInitWithCoder:aDecoder];
}
- (id)copyWithZone:(NSZone*)zone {
    return [self yy_modelCopy];
}
- (NSUInteger)hash {
    return [self yy_modelHash];
}
- (BOOL)isEqual:(id)object {
    return [self yy_modelIsEqual:object];
}
@end
